package org.ala.distributed_transaction_test.test_tx.entity;

import java.lang.Long;
import io.swagger.annotations.ApiModel;
import java.lang.String;
import java.lang.Integer;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;


/**
 *	Entity (test_2)
 *  
 *	@author 骆毅 (ala)
 *	@date 2024-02-20 16:14:12
 */
@ApiModel("test_2")
public class Test2DO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@ApiModelProperty("id")
	protected Long id;
	
	@ApiModelProperty("name")
	protected String name;
	
	@ApiModelProperty("age")
	protected Integer age;
	
	@ApiModelProperty("sex")
	protected Integer sex;
	
	
	
	public static Test2DO build() {return new Test2DO();}
	
	
	public Test2DO id(Long id) {this.id = id; return this;}
	public void setId(Long id) {this.id = id;}
	public Long getId() {return id;}
	
	public Test2DO name(String name) {this.name = name; return this;}
	public void setName(String name) {this.name = name;}
	public String getName() {return name;}
	
	public Test2DO age(Integer age) {this.age = age; return this;}
	public void setAge(Integer age) {this.age = age;}
	public Integer getAge() {return age;}
	
	public Test2DO sex(Integer sex) {this.sex = sex; return this;}
	public void setSex(Integer sex) {this.sex = sex;}
	public Integer getSex() {return sex;}
	


	/**
	 *	simple vo
	 */
	public boolean getIsSimple() {return true;}
	
	
	/**
	 *	is all prop be null.
	 */
	public boolean isEmpty() {
		if (id != null) {return false;}
		if (name != null) {return false;}
		if (age != null) {return false;}
		if (sex != null) {return false;}

		return true;
	}
}
